<h1>Listing user_permissions</h1>

<table>
  <tr>
    <th>User</th>
    <th>Permission</th>
  </tr>

<% @user_permissions.each do |user_permission| %>
  <tr>
    <td><%=h user_permission.user %></td>
    <td><%=h user_permission.permission %></td>
    <td><%= link_to 'Show', user_permission %></td>
    <td><%= link_to 'Edit', edit_user_permission_path(user_permission) %></td>
    <td><%= link_to 'Destroy', user_permission, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user_permission', new_user_permission_path %>